projects
/
emacs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
933a770
)
(term_init): Fix previous change; don't rely on the
author
Kenichi Handa
<handa@m17n.org>
Thu, 21 Aug 2003 11:33:00 +0000
(11:33 +0000)
committer
Kenichi Handa
<handa@m17n.org>
Thu, 21 Aug 2003 11:33:00 +0000
(11:33 +0000)
length of `buffer' if TERMINFO is defined.
src/term.c
patch
|
blob
|
history
diff --git
a/src/term.c
b/src/term.c
index 66232ab204dc79088a20ba981d468df68a4642d4..506fc16ffb3bbd230937fe74fb7a687c42c4a472 100644
(file)
--- a/
src/term.c
+++ b/
src/term.c
@@
-2229,10
+2229,14
@@
to do `unset TERMCAP' (C-shell: `unsetenv TERMCAP') as well.",
#endif
}
+#ifdef TERMINFO
+ area = (char *) xmalloc (buffer_size);
+#else
if (strlen (buffer) >= buffer_size)
abort ();
area = (char *) xmalloc (strlen (buffer));
+#endif
TS_ins_line = tgetstr ("al", address);
TS_ins_multi_lines = tgetstr ("AL", address);